package com.wikimi.member.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wikimi.domain.Member;
import com.wikimi.member.dao.MemberMapper;

@Transactional
@Service
public class MemberServiceImpl implements MemberService {

	@Autowired
	private MemberMapper mapper;

	@Override
	@Transactional(readOnly = true)
	public boolean checkId(String id) {
		// TODO Auto-generated method stub
		return mapper.checkId(id).intValue() == 0 ? true : false;
	}
	
	@Override
	public void addMember(Member member) {
		// TODO Auto-generated method stub
		mapper.addMember(member);
	}
}
